broadway: Add missing dependency to build
authorPhilip Withnall <withnall@endlessm.com>
Fri, 17 Nov 2017 10:03:35 +0000 (10:03 +0000)
committerPhilip Withnall <withnall@endlessm.com>
Fri, 17 Nov 2017 10:14:42 +0000 (10:14 +0000)
The generated file clienthtml.h is #included by broadway-server.c, which
is one of the sources of the broadway library — so clienthtml.h needs to
be one of the sources of that library too.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=790489

gdk/broadway/meson.build

index 59f486d41395264b351833f69c6367843979417c..4534a9d747ab884f77459f6e0f7c45e26995cef8 100644 (file)
@@ -31,7 +31,14 @@ gdk_broadway_public_headers = [
 
 gdk_broadway_deps = [shmlib]
 
+clienthtml_h = custom_target('clienthtml.h',
+  input : 'client.html',
+  output : 'clienthtml.h',
+  command : [find_program('toarray.pl'), 'client_html', '@INPUT@'],
+  capture : true)
+
 libgdk_broadway = static_library('gdk-broadway',
+  clienthtml_h,
   gdk_broadway_sources, gdkconfig, gdkenum_h,
   include_directories: [confinc, gdkinc],
   c_args: [
@@ -45,12 +52,6 @@ libgdk_broadway = static_library('gdk-broadway',
 
 broadwayd_syslib = os_win32 ? find_library('ws2_32') : shmlib
 
-clienthtml_h = custom_target('clienthtml.h',
-  input : 'client.html',
-  output : 'clienthtml.h',
-  command : [find_program('toarray.pl'), 'client_html', '@INPUT@'],
-  capture : true)
-
 broadwayjs_h = custom_target('broadwayjs.h',
   input : ['broadway.js', 'rawinflate.min.js'],
   output : 'broadwayjs.h',